package com.elangzhi.ssm.model;

import com.elangzhi.ssm.model.base.BaseModel;

import java.math.BigDecimal;

public class OrderGoods extends BaseModel {
    private Long id;

    /**
     * 商品名称
     */
    private String name;


    /**
     *1，商品
     */
    private Integer type;


    /**
     *商品id
     */
    private Long infoId;


    /**
     *数量
     */
    private Integer number;


    /**
     *价格
     */
    private BigDecimal price;


    /**
     *所属订单
     */
    private Long orderFromId;

    public OrderGoods(Long id, String name, Integer type, Long infoId, Integer number, BigDecimal price, Long orderFromId) {
        this.id = id;
        this.name = name;
        this.type = type;
        this.infoId = infoId;
        this.number = number;
        this.price = price;
        this.orderFromId = orderFromId;
    }

    public OrderGoods() {
        super();
    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Integer getType() {
        return type;
    }

    public void setType(Integer type) {
        this.type = type;
    }

    public Long getInfoId() {
        return infoId;
    }

    public void setInfoId(Long infoId) {
        this.infoId = infoId;
    }

    public Integer getNumber() {
        return number;
    }

    public void setNumber(Integer number) {
        this.number = number;
    }

    public BigDecimal getPrice() {
        return price;
    }

    public void setPrice(BigDecimal price) {
        this.price = price;
    }

    public Long getOrderFromId() {
        return orderFromId;
    }

    public void setOrderFromId(Long orderFromId) {
        this.orderFromId = orderFromId;
    }
}